package top.italks.demo.learn;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface LearnMapper {
    @Insert("INSERT INTO learn_resource (author, title,url) VALUES (#{author}, #{title}, #{url})")
    int add(LearnResouce learnResouce);

    int update(LearnResouce learnResouce);

    int deleteByIds(String[] ids);

    LearnResouce queryLearnResouceById(Long id);

    public List<LearnResouce> queryLearnResouceList(Map<String, Object> params);
}
